import React, { Component } from 'react'
import { Switch, Redirect, Route } from 'react-router-dom'
import Home from '../components/Home/Home'
import Dingdan from '../components/Dingdan/Dingdan'
import My from '../components/My/My'
import Mysc from '../components/My/Mysc/Mysc'
import Xzdz from '../components/My/Xzdz/Xzdz'
import Xgdz from '../components/My/Xgdz/Xgdz'
import Shdz from '../components/My/Shdz/Shdz'
import Search from '../components/Search/Search'
import Shop from '../Shop/Shop'
import Gmsp from '../components/Gmsp/Gmsp'
export default class Router extends Component {
    render() {
        return (
            <Switch>
                <Route path="/home" component={Home}></Route>
                <Route path="/dingdan" component={Dingdan}></Route>
                <Route path="/my" component={My}></Route>
                <Route path="/mysc" component={Mysc}></Route>
                <Route path="/xzdz" component={Xzdz}></Route>
                <Route path="/xgdz" component={Xgdz}></Route>
                <Route path="/shdz" component={Shdz}></Route>
                <Route path="/search" component={Search}></Route>
                <Route path="/my" component={My}></Route>
                <Route path="/shop" component={Shop}></Route>
                <Route path="/gmsp" component={Gmsp}></Route>
                <Redirect to="/home"></Redirect>
            </Switch>
        )
    }
}
